Using Multiprocessing Services

This chapter describes how to incorporate Multiprocessing Services into your Mac OS application. You should read this chapter if you are interested in adding preemptive tasks to your application.

The topics covered in this chapter include:

Note

This document describes version 2.1 of Multiprocessing Services. For a list of functions changed or added between versions 1.4 and 2.1, see Changes From Previous Versions of Multiprocessing Services . Applications built using older versions of Multiprocessing Services can execute without modification under version 2.1.

IMPORTANT

Preemptive tasks cannot execute 68K code. If you must call 68K code in a task, you must do so through a remote procedure call as described in Making Remote Procedure Calls .

Multiprocessing Services in Mac OS 9 and Mac OS X

Compatibility with Older System Software

Criteria for Creating Tasks

Checking for the Availability of Multiprocessing Services

Determining the Number of Processors

Creating Tasks

Terminating Tasks

Synchronizing and Notifying Tasks

Allocating Memory in Tasks

Using Task-Specific Storage

Using Timers

Making Remote Procedure Calls

Handling Exceptions and Debugging


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)